package com.pushdemo;

import android.app.Activity;
import android.os.Bundle;

//import com.foreveross.push.logic.AuthDelegate;
/*import com.foreveross.chameleon.config.Preferences;
import com.foreveross.chameleon.config.PushPreferences;
import com.foreveross.chameleon.config.URL;
import com.foss.push.socket.PushSetup;
import com.foss.push.socket.SocketPrevSetupCallback;
import com.pushdemo.config.ChameleonConstants;
import com.pushdemo.logic.ChameleonAuthDelegate;
import com.pushdemo.logic.ChameleonAuthDelegate.AuthCallback;
import com.pushdemo.logic.ChameleonLogicDelegate;
import com.pushdemo.logic.ChameleonRegisterDelegate;
*/
import android.util.Log;

import org.apache.cordova.CordovaActivity;
import org.json.JSONException;
import org.json.JSONObject;
import com.pushdemo.logic.JsCallNativeDelegate;
/**
 * Created by zhouzhineng on 14-8-20.
 */
public class MainActivity extends CordovaActivity{

    public final static String TAG = "MainActivity";
    public String currUserName;
    @Override
    public void onCreate(Bundle saveInstanceState) {
        super.onCreate(saveInstanceState);
        loadUrl("file:///android_asset/www/push.html");
        //initJsCall();
    }

    private void initJsCall() {
        appView.getSettings().setJavaScriptEnabled(true);
        appView.addJavascriptInterface(new JsCallNativeDelegate(appView, this), "jsCallNativeDelegate");
    }

}
